<?php
/* @var $this AskController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'交互平台',
);

$this->menu=array();
//	array('label'=>Yii::t('ask/index', 'Create Ask'), 'url'=>array('create')),
        if (Yii::app()->user->checkAccess('admin'))
        {
            $this->menu=array(
	array('label'=>Yii::t('ask/views', 'Manage Ask'), 'url'=>array('admin')),
                    );
        }
?>
<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
            <div class="titleimage">
                <h3 class="panel-title panel-title-font">交互平台</h3>
            </div>
    </div>
<div class="panel-body" style="padding:15px">

<?php $this->widget('AskNav', array('isIndex'=>true)); ?>

    <div style="text-align:right;margin-bottom:10px;margin-top:-35px;">
        <form method="get">
            <input type="text" name="search" value="<?php echo $key?>" style="width:300px"></input>
            <button type="submit">搜索</button>
        </form>
    </div>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
                     'itemsTagName' => 'ul',
                     'itemsCssClass' => 'ask-list-group',
	'itemView'=>'_view',
)); ?>

<div id="new-ask" >
    <div class="span12">
        <div id="">
            <?php
            $this->renderPartial('_form', array(
                'model' => $model
            ));
            ?>
        </div>
    </div>
    <div class="clear"></div>
</div>
</div>
</div>
